export default (app: any) => {
  // 开发环境开启devtool
  if (import.meta.env.MODE === 'development') {
    app.config.devtools = true
  }
  app.config.errorHandler = (err: any, vm: any, info: any) => {
    console.error('Vue错误：', err, vm, info)
  }
  app.config.warnHandler = (msg: any, vm: any, trace: any) => {
    console.warn('Vue警告：', msg, vm, trace)
  }
  app.config.performance = true
}
